/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* E.P. Scene Graph
* Developed by:
*       - Eduardo Ribeiro (eribeiro @ tecgraf . puc-rio . br)
*       - Peter Dam (peter @ tecgraf . puc-rio . br)
* File: Switch.h
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#ifndef _EPSG_SWITCH_
#define _EPSG_SWITCH_

#include "EPSG/Group.h"
#include "EPSG/Prototypes.h"

namespace EPSG
{
	class Switch : public Group
	{
	public:
		/* [CONSTRUCTOR] */	Switch();

		virtual void		render();
		void				setActive( int index );
		void				setActive( EPSG::Node* n );

		bool				addChild( Node* n );
	
	private:
		EPSG::Node*			_activeNode;
	};
}

#endif //_EPSG_SWITCH_